﻿//-----------------------------------------------------------------------
// <copyright file="NoteReceiverFactory.cs" company="Mulala">
//     Copyright Mulala. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

namespace Mulala.Cavan.Domain.MainBoundedContext.InformationModule
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using Mulala.Cavan.Domain.MainBoundedContext.SecurityModule;

    public static class NoteReceiverFactory
    {
        public static NoteReceiver CreateNoteReceiver(
                                        UserAccount receiverUserAccount,
                                        bool isDeleted,
                                        bool isNew,
                                        string editUser)
        {
            NoteReceiver noteReceiver = new NoteReceiver();
            noteReceiver.EditTime = DateTime.Now;
            noteReceiver.EditUser = editUser;
            noteReceiver.IsDeleted = isDeleted;
            noteReceiver.IsNew = isNew;
            noteReceiver.ReceiverUserAccount = receiverUserAccount;
            noteReceiver.CreateTime = DateTime.Now;

            return noteReceiver;
        }
    }
}
